home *** CD-ROM | disk | FTP | other *** search
/ Pro Intralink 3.1 / Pro Intralink v3.1.iso / dsrc / templates / unix / u_training_start.tpl < prev    next >
Encoding:
Text File  |  2001-11-27  |  1.5 KB  |  76 lines

  1. // 10-Jun-99  $$1  TWH   Created from req.doc.
  2. #include:head.inc
  3.  
  4. ########################################
  5. ##    PTC Pro/E Update Init Script    ##
  6. ########################################
  7. ##   LCD Multimedia Creations, 1998   ##
  8. ########################################
  9.  
  10. set ECHO="echo"
  11.  
  12. # Command-line help info
  13.  
  14. if ($1 == "-h")  then
  15.     $ECHO " "
  16.     $ECHO " PTC Pro/E Update Training 1.0 -  Application Launcher"
  17.     $ECHO "     usage: $0 (-volume range)"
  18.     $ECHO "     Supported options:"
  19.     $ECHO "     -volume N    audio volume (0-100)"
  20.     $ECHO " "
  21.     exit 1
  22. endif
  23.  
  24. set arg1=$1
  25. set arg2=$2
  26. set arg3=$3
  27. set arg4=$4
  28.  
  29. # Welcome message
  30.  
  31. $ECHO " "
  32. $ECHO "PTC Pro/E Update Training"
  33. $ECHO " configuring environment variables..."
  34.  
  35. ########
  36.  
  37. set OS=`uname` 
  38.  
  39. setenv TRAINING_FEATURE_NAME "__TRAINING_FEATURE_NAME__"
  40.  
  41. setenv CONTENTDIR "__CONTENTDIR__"
  42.  
  43. #includeenv:PROE_START:proe_start.env
  44.  
  45. switch ($OS)
  46. case IRIX:
  47.     setenv LIBPATH $fullscrpath/irix
  48.     $ECHO "  LIBPATH set"
  49.     $fullscrpath/update.sgi $arg1 $arg2 
  50.     breaksw
  51. case AIX:
  52.     $ECHO "  Extracting shared libraries..."
  53.     tar -xf $fullscrpath/aix/aixlibs.tar
  54.     setenv LD_LIBRARY_PATH /usr/openwin/lib:/usr/dt/lib:/tmp
  55.     $ECHO "  LD_LIBRARY_PATH set"
  56.     setenv LIBPATH /tmp
  57.     $ECHO "  LIBPATH set"
  58.     $fullscrpath/update.aix $arg1 $arg2
  59.     breaksw
  60. case HP-UX:
  61.     $fullscrpath/update.hp $arg1 $arg2
  62.     breaksw
  63. case OSF1:    
  64.     setenv LIBPATH $fullscrpath/osf1
  65.     $ECHO "  LIBPATH set"
  66.     $fullscrpath/update.osf $arg1 $arg2
  67.     breaksw
  68. default:
  69.     setenv LD_LIBRARY_PATH /usr/openwin/lib:/usr/dt/lib:$fullscrpath/sunos
  70.     $fullscrpath/update.sun $arg1 $arg2
  71. endsw
  72.  
  73.  
  74. cd $rundir
  75. exit 0
  76.